<?php

namespace app\model\product;

use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;
use think\Model;

class Brand extends BaseModel
{
    use ModelTrait;

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'store_brands';


    /**
     * 是否删除搜索器
     * @param Model $query
     * @param $value
     */
    public function searchIsDelAttr($query, $value)
    {
        $query->where('is_del', $value ?: 0);
    }

}